import request from '@/utils/request'

// 查询场景流程列表
export function listSceneProcess(query) {
  return request({
    url: '/business/sceneProcess/list',
    method: 'get',
    params: query
  })
}

// 查询场景流程详细
export function getSceneProcess(id) {
  return request({
    url: '/business/sceneProcess/' + id,
    method: 'get'
  })
}

// 新增场景流程
export function addSceneProcess(data) {
  return request({
    url: '/business/sceneProcess',
    method: 'post',
    data: data
  })
}

// 修改场景流程
export function updateSceneProcess(data) {
  return request({
    url: '/business/sceneProcess',
    method: 'put',
    data: data
  })
}

// 删除场景流程
export function delSceneProcess(id) {
  return request({
    url: '/business/sceneProcess/' + id,
    method: 'delete'
  })
}
